package com.volunteer.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 积分记录实体类
 */
@Data
@TableName("point_record")
public class PointRecord implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long userId;

    private Integer points;

    private String type;  // ACTIVITY, DEMAND, MANUAL

    private Long sourceId;

    private String description;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}

